package ooday03;

import ooday03.Animal;

public class Fish extends Animal implements Swim {
    Fish(String name, int age, String color){
        super("鱼",1,"红");
    }
    void eat(){
        System.out.println(name+"鱼粮");
    }
    void sayHi(){
        System.out.println(color+"色"+name+age+"岁了"+"他会吃鱼粮");
    }
    public void swim(){
        System.out.println(color+"色的"+age+"岁的小狗"+name+"正在潜水。..");
    }
}
